﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MovieRental.Entities
{
    [DataContract]
    public class LoanInfo : BaseEntity<Guid>
    {
        public LoanInfo()
        {
            Id = Guid.NewGuid();
        }

        [DataMember]
        public Guid EditionId { set; get; }

        [DataMember]
        public Guid LoanCartId { set; get; }

        [DataMember]
        public double PricePerDay { set; get; }

        [DataMember]
        public DateTime ReturnDate { set; get; }
    }
}
